//
//  AppDelegate.swift
//  FWSinaWeibo
//
//  Created by 范伟 on 16/2/21.
//  Copyright © 2016年 FanWei. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        print(UserAccount.sharedInstance)
        //设置全局外观，一经设置全局有效
        UINavigationBar.appearance().tintColor = FWAppAppearence
//        UITabBar.appearance().tintColor = appAppearence
        //设置导航栏标题字体大小
        UINavigationBar.appearance().titleTextAttributes = [NSFontAttributeName: UIFont.systemFontOfSize(16)]
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.whiteColor()
        window?.rootViewController = MainViewController()
        window?.makeKeyAndVisible()
        return true
    }
}

